import request from "@/utils/request";

// 上传文件
export function declarationInfo(data, method) {
  return request({
    url: "/declarationInfo",
    method,
    data,
  });
}

// 查询承诺书
export function getCommitmentLetter(params) {
  return request({
    url: "/serviceConfiguration/getCommitmentLetter",
    method: "get",
    params,
  });
}

// 体系详情
export function declarationSystem(id) {
  return request({
    url: `/declarationSystem/${id}`,
    method: "get",
  });
}

// 根据申报体系id查询申报级别
export function getDeclarationLevels(params) {
  return request({
    url: `/declarationSystem/getDeclarationLevels`,
    method: "get",
    params
  });
}

// 根据申报体系id查询社会组织类型
export function getOrganizationTypes(params) {
  return request({
    url: `/declarationSystem/getOrganizationTypes`,
    method: "get",
    params,
  });
}

// 获取申报信息
export function getDeclarationInfo(id) {
  return request({
    url: `/declarationInfo/${id}`,
    method: "get",
  });
}

// 获取签名承诺书
export function getSignCommitmentLetter(params) {
  return request({
    url: `/serviceConfiguration/getSignCommitmentLetter`,
    method: "get",
	  params
  });
}